from apps.common.base.dao import BaseDao
from apps.education.courseStudent.serializers import *

class CourseStudentDao(BaseDao):
    MODEL_CLASS = CourseStudent
    SERI_CLASS = CourseStudentBaseSerializer

    def findAll(self):
        return super().findAll().select_related('course', 'student', 'course__coursecate', 'course__teacher')